package com.czxy.demo01;

public class Test03 {
	//0000
    public static void main(String[] args) {
            show();
            show2();
    }
    public static void show(){
        double sum = 0;
        for (int i = 1; sum <50 ; i++) {
            sum=i*i*3.14;
            if(sum<50){
                System.out.println("圆的半径为："+i+"    圆的的面积为："+sum);
            }

        }
    }

    public static void show2(){
        double sum = 0;
        int i=1;
        while (sum<50){
            sum=i*i*3.14;

            if(sum<50){
                System.out.println("圆的半径为："+i+"    圆的的面积为："+sum);
            }
            i++;
        }
    }
}
